<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->
  <title>公告管理</title>
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width">        
  <link rel="stylesheet" href="css/templatemo_main.css">
  <link rel="stylesheet" href="css/summernote.css">
  <style>
    .m{ width: 686px;  }
  </style>
</head>
<body>
  <div id="main-wrapper">
    <div class="navbar navbar-inverse" role="navigation">
      <div class="navbar-header">
        <div class="logo"><h1>Dashboard - Admin Template</h1></div>
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button> 
      </div>   
    </div>
    <div class="template-page-wrapper">
      <div class="navbar-collapse collapse templatemo-sidebar">
        <ul class="templatemo-sidebar-menu">
          <li>
            <form class="navbar-form">
              <input type="text" class="form-control" id="templatemo_search_box" placeholder="Search...">
              <span class="btn btn-default">Go</span>
            </form>
          </li>
          <li class="active"><a href="index.html"><i class="fa fa-home"></i>主页</a></li>
          <li class="sub">
            <a href="javascript:;">
              <i class="fa fa-database"></i> 用户管理 <div class="pull-right"><span class="glyphicon glyphicon-chevron-right"></span></div>
            </a>
            <ul class="templatemo-submenu">
              <li><a href="promoterTables.html">推广员管理</a></li>
              <li><a href="userTables.html">用户管理</a></li>
            </ul>
          </li>
          <li class="sub">
            <a href="javascript:;">
              <i class="fa fa-database"></i> 推广管理 <div class="pull-right"><span class="glyphicon glyphicon-chevron-right"></span></div>
            </a>
            <ul class="templatemo-submenu">
              <li><a href="picsManage.html">图片管理</a></li>
              <li><a href="atriclesManage.html">文章管理</a></li>
            </ul>
          </li>
          <li class="sub">
            <a href="javascript:;">
              <i class="fa fa-database"></i> 广告位管理 <div class="pull-right"><span class="glyphicon glyphicon-chevron-right"></span></div>
            </a>
            <ul class="templatemo-submenu">
              <li><a href="advertisingManage.html">广告设置</a></li>
            </ul>
          </li>
          <li class="sub">
            <a href="javascript:;">
              <i class="fa fa-database"></i> 咨询管理 <div class="pull-right"><span class="glyphicon glyphicon-chevron-right"></span></div>
            </a>
            <ul class="templatemo-submenu">
              <li><a href="counselManage.html">咨询管理</a></li>
            </ul>
          </li> 
          <li class="sub">
            <a href="javascript:;">
              <i class="fa fa-database"></i> 公告管理 <div class="pull-right"><span class="glyphicon glyphicon-chevron-right"></span></div>
            </a>
            <ul class="templatemo-submenu">
              <li><a href="announce.html">发布公告</a></li>
            </ul>
          </li>                    
          <li class="sub">
            <a href="javascript:;">
              <i class="fa fa-database"></i> 合作方管理 <div class="pull-right"><span class="glyphicon glyphicon-chevron-right"></span></div>
            </a>
            <ul class="templatemo-submenu">
              <li><a href="announce.html">发布公告</a></li>
            </ul>
          </li>                    
          <li>
            <a href="partnerManager.html">
              <i class="fa fa-cubes"></i><span class="badge pull-right">9</span>合作方管理
            </a>
          </li>
          <li class="sub">
            <a href="javascript:;">
              <i class="fa fa-database"></i> 佣金管理 <div class="pull-right"><span class="glyphicon glyphicon-chevron-right"></span></div>
            </a>
            <ul class="templatemo-submenu">
              <li><a href="commissionList.html">佣金列表</a></li>
              <li><a href="cashSettlement.html">提现结算</a></li>
            </ul>
          </li>                    
          <li><a href="data-visualization.html"><i class="fa fa-cubes"></i><span class="badge pull-right">9</span>Data Visualization</a></li>
          <li><a href="maps.html"><i class="fa fa-map-marker"></i><span class="badge pull-right">42</span>Maps</a></li>
          <li class="active"><a href="#"><i class="fa fa-users"></i><span class="badge pull-right">NEW</span>Manage Users</a></li>
          <li><a href="preferences.html"><i class="fa fa-cog"></i>Preferences</a></li>
          <li><a href="javascript:;" data-toggle="modal" data-target="#confirmModal"><i class="fa fa-sign-out"></i>Sign Out</a></li>
        </ul>
      </div><!--/.navbar-collapse -->

      <div class="templatemo-content-wrapper">
        <div class="templatemo-content">
          <ol class="breadcrumb">
            <li><a href="index.html">Admin Panel</a></li>
            <li><a href="#">Manage Users</a></li>
            <li class="active">Tables</li>
          </ol>
          <h1>发布公告</h1>
          <p>Here goes tables and users.</p>
      
          <!-- 新加的content -->

        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <div class="ibox-tools">
                            <a class="close-link" title="返回" href="/notice/list">
                                <i class="fa fa-reply"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form id="mform" class="form-horizontal" action="/notice/add" method="post">
                            <input type="hidden" value="">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">标题</label>

                                <div class="col-sm-8">
                                    <input type="text" id="title"  name="title" class="form-control" value="">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">状态</label>
                                <div class="col-sm-8">
                                    <select class="form-control" name="flag" >
                                      <option value="0"   >上线</option>
                                      <option value="1" >下线</option>
                                  </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">内容</label>
                                <div class="col-sm-8">
                                    <div class="m">
                                      <div class="summernote"></div>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                </div>
                            </div>
                            
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-10 text-right">
                                    <button class="btn btn-white" type="button" onclick="cancel();">取消</button>
                                    <button class="btn btn-success" type="button" onclick="preview();">预览</button>
                                    <button class="btn btn-primary" type="button" onclick="save();">提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

          <!-- 新加的content -->



        </div>
      </div>

      <!-- Modal -->
      <div class="modal fade" id="confirmModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
              <h4 class="modal-title" id="myModalLabel">Are you sure you want to sign out?</h4>
            </div>
            <div class="modal-footer">
              <a href="sign-in.html" class="btn btn-primary">Yes</a>
              <button type="button" class="btn btn-default" data-dismiss="modal">No</button>
            </div>
          </div>
        </div>
      </div>

      <footer class="templatemo-footer">
        <div class="templatemo-copyright">
          <p>Copyright &copy; 2084 Your Company Name <!-- Credit: www.templatemo.com --></p>
        </div>
      </footer>
    </div>
</div>
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/templatemo_script.js"></script>
    <script language="javascript" type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
    <script src="js/dist/summernote.js"></script>
    <script src="js/dist/lang/summernote-zh-CN.js"></script>    <!-- 中文-->

<script>
$(function(){
   $('.summernote').summernote({
          height: 500,
          tabsize: 2,
          lang: 'zh-CN'
      });
});
</script>
  </body>
</html>